package com.jiayou.config

import com.jiayou.socket.GameSocket
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.web.socket.server.standard.ServerEndpointExporter

@Configuration
open class WebSocketConfig {
    @Bean
    open fun gameSocket() = GameSocket()

    @Bean
    open fun serverEndpointExporter() = ServerEndpointExporter()
}